package woaini.fenger.bots.opq.dto;

import java.io.Serializable;

import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * opq上传响应
 *
 * @see woaini.fenger.bots.opq.dto.OpqUploadResponse
 * @author yefeng {@code @Date} 2023-05-16 16:50:39
 */
@NoArgsConstructor
@Data
public class OpqUploadResponse implements Serializable {

  /**
   * @see CgiBaseResponse CGI基本响应
   */
  @JSONField(name = "cgiBaseResponse")
  private CgiBaseResponse CgiBaseResponse;

  /**
   * @see ResponseData 响应数据
   */
  @JSONField(name = "responseData")
  private ResponseData ResponseData;

  @NoArgsConstructor
  @Data
  public static class CgiBaseResponse implements Serializable {
    /**
     * @see Integer ret
     */
    @JSONField(name = "ret")
    private Integer Ret;

    /**
     * @see String 大错特错消息
     */
    @JSONField(name = "errMsg")
    private String ErrMsg;
  }

  @NoArgsConstructor
  @Data
  public static class ResponseData implements Serializable {
    /**
     * @see String 文件MD5文件MD5
     */
    @JSONField(name = "fileMd5")
    private String FileMd5;

    /**
     * @see Integer 文件大小
     */
    @JSONField(name = "fileSize")
    private Integer FileSize;

    /**
     * @see String 令牌文件文件
     */
    @JSONField(name = "fileToken")
    private String FileToken;
  }
}
